/*
 * ACL helper class
 */
package org.dbdir.core.helper;

/**
 *
 * @author thotheolh
 */
public class ACL {

    private String username;
    private String dbAlias;
    private boolean showDbPath;
    private boolean showDbUsername;
    private boolean showDbPassword;
    private boolean showDateTimeReg;
    private boolean editDbPath;
    private boolean editDbUsername;
    private boolean editDbPassword;

    public ACL(String username, String dbAlias, boolean showDbPath, boolean showDbUsername, boolean showDbPassword, boolean showDateTimeReg, boolean editDbPath, boolean editDbUsername, boolean editDbPassword) {
        this.setUsername(username);
        this.setDbAlias(dbAlias);
        this.setShowDbPath(showDbPath);
        this.setShowDbUsername(showDbUsername);
        this.setShowDbPassword(showDbPassword);
        this.setShowDateTimeReg(showDateTimeReg);
        this.setEditDbPath(editDbPath);
        this.setEditDbUsername(editDbUsername);
        this.setEditDbPassword(editDbPassword);
    }

    public ACL(){
        
    }

    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the dbAlias
     */
    public String getDbAlias() {
        return dbAlias;
    }

    /**
     * @param dbAlias the dbAlias to set
     */
    public void setDbAlias(String dbAlias) {
        this.dbAlias = dbAlias;
    }

    /**
     * @return the showDbPath
     */
    public boolean isShowDbPath() {
        return showDbPath;
    }

    /**
     * @param showDbPath the showDbPath to set
     */
    public void setShowDbPath(boolean showDbPath) {
        this.showDbPath = showDbPath;
    }

    /**
     * @return the showDbUsername
     */
    public boolean isShowDbUsername() {
        return showDbUsername;
    }

    /**
     * @param showDbUsername the showDbUsername to set
     */
    public void setShowDbUsername(boolean showDbUsername) {
        this.showDbUsername = showDbUsername;
    }

    /**
     * @return the showDbPassword
     */
    public boolean isShowDbPassword() {
        return showDbPassword;
    }

    /**
     * @param showDbPassword the showDbPassword to set
     */
    public void setShowDbPassword(boolean showDbPassword) {
        this.showDbPassword = showDbPassword;
    }

    /**
     * @return the showDateTimeReg
     */
    public boolean isShowDateTimeReg() {
        return showDateTimeReg;
    }

    /**
     * @param showDateTimeReg the showDateTimeReg to set
     */
    public void setShowDateTimeReg(boolean showDateTimeReg) {
        this.showDateTimeReg = showDateTimeReg;
    }

    /**
     * @return the editDbPath
     */
    public boolean isEditDbPath() {
        return editDbPath;
    }

    /**
     * @param editDbPath the editDbPath to set
     */
    public void setEditDbPath(boolean editDbPath) {
        this.editDbPath = editDbPath;
    }

    /**
     * @return the editDbUsername
     */
    public boolean isEditDbUsername() {
        return editDbUsername;
    }

    /**
     * @param editDbUsername the editDbUsername to set
     */
    public void setEditDbUsername(boolean editDbUsername) {
        this.editDbUsername = editDbUsername;
    }

    /**
     * @return the editDbPassword
     */
    public boolean isEditDbPassword() {
        return editDbPassword;
    }

    /**
     * @param editDbPassword the editDbPassword to set
     */
    public void setEditDbPassword(boolean editDbPassword) {
        this.editDbPassword = editDbPassword;
    }
}
